package io.renren.modules.auto.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.auto.dao.AtDroolsDao;
import io.renren.modules.auto.entity.AtDroolsEntity;
import io.renren.modules.auto.service.AtDroolsService;


@Service("atDroolsService")
public class AtDroolsServiceImpl extends ServiceImpl<AtDroolsDao, AtDroolsEntity> implements AtDroolsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AtDroolsEntity> page = this.page(
                new Query<AtDroolsEntity>().getPage(params),
                new QueryWrapper<AtDroolsEntity>()
        );

        return new PageUtils(page);
    }

}